Skip to main content

Start SQL Agent Job

Description

This plugin is designed to Start Agent Job to handle other automated tasks. This step only ensures start of SQL agent job and not monitoring the completion of action(s) (successful execution) present in the job.

Prerequisites:

  1. SQL Server instance and access details
  2. SQL Server Browser service must be enabled on remote machine.
  3. SQL Server Agent must be enabled.
  4. sqljdbc4-4.0.jar must be present in lib folder of Process Studio as well as AE agent.
  5. SQL Server has the following msdb database fixed database roles, which gives administrators control over access to SQL Server Agent. The roles are:
  • SQL Agent User Role
  • SQL Agent Reader Role
  • SQL Agent Operator Role

Configurations

No.Field NameDescription
1Step NameName of the step. This name has to be unique in a single workflow.
Connection:
2Server NameThe Hostname/Server Name/IP of the MSSQL Server. This field is mandatory. Drop down is available.
3Instance nameThe instance name of MSSQL Server instance. One of the two fields Instance name or Port is mandatory. Only variables/static values are allowed.
4Port NumberThe port number of the MSSQL Server. One of the two fields Instance name or Port is mandatory. Only variables/static values are allowed.
5UsernameA username of the MSSQL Server. This field is mandatory.
Password
6PasswordSpecify or select the password, as required.
If the checkbox Accept Value as variable/static is selected, then the password field appears as a text box and accepts static or variable values.
OR
If the checkbox Accept Value as variable/static is not selected, then the password field appears as a dropdown in which you can select a field from the previous steps.
7Other Connection ParameterSpecify multiple, semi-colon separated parameters other than the default connection parameters.
Other connection parameters will be appended to the default connection parameters.
Example of default connection parameters: Server Name, Password.
Examples of other connection parameters: encrypt=false;trustServerCertificate=false
Button
8Test ConnectionVerifies whether the connection is established or not.
NOTE: Test Connection button does not work for previous step fields. Test Connection button only works with static values and environment variables.
Input Fields
1Job NameName of the job to start.
2Button: GetClicking on this button brings a dialog for the available jobs on that particular SQL server instance.Get Button will work for user having system admin’s permission or having agent roles mentioned below with access on msdb.dbo.sysjobs table.
Output Fields:
1ResultOutput field to hold the result of the successful plugin execution